//package com.geely.pma.climate.api.single
package com.wanghaibo.vgashow.api.single

import com.ecarx.xui.adaptapi.car.base.ICarFunction
import io.reactivex.SingleEmitter

/**
 * Name: GetSupportedFunctionValue
 *
 * Created by Wuhao on 2020/6/2
 *
 * Version: 0.0.1
 */
class GetSupportedFunctionValueTask(
    emitter: SingleEmitter<IntArray>,
    private val function: Int
) : SingleOperation<IntArray>(emitter) {

    override fun onInitialized(carFunction: ICarFunction) {
        emitter.onSuccess(carFunction.getSupportedFunctionValue(function))
    }

}